﻿<UserControl x:Class="SinaFinance.MainChartArea.SlideShow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid x:Name="LayoutRoot" HorizontalAlignment="Left" >
            <Grid  x:Name="oddPage">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#FF131B29" Offset="0.5"/>
                        <GradientStop Color="#FF1C2E41" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <Grid.Resources>
                    <Storyboard x:Name="transitionIn1" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection1" Storyboard.TargetProperty="RotationY" From="0" To="90" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="transitionOut1" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection1" Storyboard.TargetProperty="RotationY" From="-90" To="0" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="reverseTransitionIn1" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection1" Storyboard.TargetProperty="RotationY" From="90" To="0" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="reverseTransitionOut1" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection1" Storyboard.TargetProperty="RotationY" From="0" To="-90" Duration="0:0:1" />
                    </Storyboard>
                </Grid.Resources>
                <Grid.Projection>
                    <PlaneProjection CenterOfRotationX="0.5" x:Name="planeProjection1" RotationY="0" />
                </Grid.Projection>
               
            </Grid>
            <Grid  x:Name="evenPage">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="#FF000000" Offset="0"/>
                        <GradientStop Color="#FF131B29" Offset="0.5"/>
                        <GradientStop Color="#FF1C2E41" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <Grid.Resources>
                    <Storyboard x:Name="transitionIn2" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection2" Storyboard.TargetProperty="RotationY" From="0" To="90" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="transitionOut2" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection2" Storyboard.TargetProperty="RotationY" From="-90" To="0" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="reverseTransitionIn2" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection2" Storyboard.TargetProperty="RotationY" From="90" To="0" Duration="0:0:1" />
                    </Storyboard>
                    <Storyboard x:Name="reverseTransitionOut2" >
                        <DoubleAnimation Storyboard.TargetName="planeProjection2" Storyboard.TargetProperty="RotationY" From="0" To="-90" Duration="0:0:1" />
                    </Storyboard>
                </Grid.Resources>
                <Grid.Projection>
                    <PlaneProjection CenterOfRotationX="0.5"  x:Name="planeProjection2" RotationY="-90" />
                </Grid.Projection>
                
            </Grid>
           
        </Grid>
    </Grid>
</UserControl>
